package com.zg.autoflow.enm;

/**
 * 常量
 */
public interface FlowContants {
    //所有对象的删除状态0为正常，1为删除
    String DELETE_STATE = "1";
    String DELETE_STATE_OFF = "0";
    //所有判断是成功的tag标志
    String OK_TAG = "1";
    //所有判断是成功的tag标志
    String NO_TAG = "0";


    //流程启动类型
    interface FLOW_START_TYPE{
        final String XSZT = "XSZT";
        final String ZGS = "ZGS";
    }

    //是否类型
    interface YON{
       final String Y = "Y";
        final String N = "N";
    }


    //各种实例前缀 最好别超过3位
    interface InsPrefix{
        String FLOWINS_PRE = "FI";
        String FLOWSTEPINS_PRE = "SI";
    }

    interface SingleType{
        String ONE = "ONE";
        String MORE = "MORE";
    }


    //单签 会签 等等
    interface ApproveType{
        final  String DANQIAN = "0";
        final  String HUIQIAN = "1";
        final  String TIAOZHUANJIESHU = "2";//跳转结束流程
    }



    //单签 会签 等等
    interface StepParameterKey{
        final  String NEXT_FLOW = "NEXT_FLOW"; //下个流程的流程code
        final  String NEXT_FLOW_STEP = "NEXT_FLOW_STEP";//下个流程的启动环节
        final  String NEXT_FLOW_USER = "NEXT_FLOW_USER";//下个流程的启东人
    }



    /**
     * 支付记录的状态
     */
    interface PAY_ORDER_STATE{
        String WEI_SHI_YONG = "未使用";
        String YI_ZHAN_YONG = "已占用";
        String YI_SHI_YONG = "已使用";
    }

    /**
     * 流程状态编码
     */
    interface FlowInsState {
        //已删除
        String DELETE = "0";
        //进行中
        String RUNING = "1";
        //已结束
        String OVER = "2";
        //作废状态
        String CANCEL = "3";
        //未开始
        String NOSTART = "4";
        //草稿
        String DRAFT = "5";
    }

    /**
     * 流程环节的状态编码
     */
   interface FlowStepInsState{
        //1进行中
          String RUNING = "1";
        //已完成
          String COMPLETE = "2";
        //已结束
          String OVER = "3";
        //已退回
          String RETURNBACK = "4";
        //作废状态
          String CANCEL = "9";
    }


    //**********************固定的环节标识
    interface StepCode{
        //开始环节
          String STEP_START = "00";
        //结束环节
          String STEP_OVER = "99";
          //退回环节
          String STEP_RETURN = "0B";
        //用款流程资金科环节
        String STEP_MONEY_JSKQR = "19";
        //用款流程资金科环节
        String STEP_MONEY_JSKQR_01 = "15";
        //用款流程资金科环节
         String STEP_MONEY_ZJK = "25";
          //用款流程市场公司确认环节
          String STEP_MONEY_ADJUST = "93";
          //退款审批单
          String STEP_SHENPI = "10";

          //市场处确认单据
        String STEP_SCGS = "80";
    }

    /**
     * 环节用户的状态
     */
    interface StepInstUserState{
       final String DOING = "0";
        final String OVER = "1";

    }

    interface  SFlowInsWaitStartState{
        //1进行中
        String RUNING = "0";
        //已完成
        String COMPLETE = "1";
    }

    /**
     * 待处理流程状态
     */
    interface ProcessState{
        //待处理
        String PENDING = "1";

        //进行中
        String RUNING = "2";

        //已结束
        String OVER = "3";

        //作废状态
        String CANCEL = "4";

        //已退回
        String RETURNBACK = "5";
    }

    /**
     * 运输方式
     */
    interface Transport{
        //0公路
        String HY = "0";

        //1铁路
        String RY = "1";
    }

    /**
     * 是否催办
     */
    interface UrgeState{
        String URGE = "1";
    }

    interface SettleBizformState{
       Integer created=1; //创建了
        Integer saveed=2; //保存数据了
        Integer pdfed=3; //生成了pdf
        Integer sealed=4; //已经盖章

        Integer[] ALL_HAS_SAVED_STATES = {saveed,pdfed,sealed};
    }

    /**
     *@description：  采集状态
     */
    interface CollectState{
        //采集状态；1.编辑中；2.上报审核中；3审核通过；4.审核未通过；5.已发布
        String EDIT = "1";

        String PROCESSING = "2";

        String PROCESSPASS = "3";

        String PROCESSFAIL = "4";

        String PUBLISHED = "5";
    }

    interface ShortMessage{
        String NOT_NEED = "0";

        String NEED = "1";
    }


}
